package day09.DogTest2;

public class test2 {
    public static void main(String[] args) {

        Dog d1 = new Dog("二哈");
        Dog d2 = new Dog("二哈");
        Dog d3 = new Dog();

    }
}
class Dog{
    String name;
    int age;
    String color;
    //可以不完全传递
    public Dog(String name1){
        name = name1;
        System.out.println("有个名字");
    }
    public Dog(){
        System.out.println("啥也没有");
    }
}
